<tagLib name="html" />
<include file="../Public/header" />
<script>
//院系，专业，班级
YXZYBJ = [
["CategoryName","ParentId","Id"],
<?php
for($i=0;$i<count($yxzybj);$i++){
echo '["'.$yxzybj[$i]['CODENAME'].'","'.$yxzybj[$i]['PCODE'].'","'.$yxzybj[$i]['CODE'].'"]';if((count($yxzybj)-1)!=$i) {echo ",";}echo "\n";
}
?>
];

</script>
<div id="main" class="main" >
<div class="content">
<div class="title">新增数据 [ <A HREF="__URL__">返回列表</A> ]</div>

<FORM METHOD=POST id="form1" action="__URL__/insert/" onsubmit="return CheckForm(this)">
<TABLE cellpadding=3 cellspacing=3>
<iterate name="list" id="voList">

<TR>
	<TD valign="top" class="tRight" >{$voList.COMMENT}：</TD>
	<TD class="tLeft" >
	<!--是TEXT标签的时候-->
	<eq name="voList['INPUT']" value="text">
		<INPUT TYPE="text" id="{$voList.FIELD}" class="<eq name="voList['FIELD']" value="xh" >bLeftRequire</eq>"  check='<eq name="voList['FIELD']" value="xh" >Require</eq>' warning="{$voList.COMMENT}不能为空" NAME="{$voList.FIELD}" size="{$voList.LENGTH}" value="{$vo[$voList['FIELD']]}" <eq name="voList['ISCODE']" value="1">readonly</eq> >
	</eq>
	<!--是DATE标签的时候-->
	<eq name="voList['INPUT']" value="date">
		<INPUT TYPE="text" id="{$voList.FIELD}"  NAME="{$voList.FIELD}" class="<eq name="voList['REQUIRE']" value="1" >bLeftRequire</eq>" check='<eq name="voList['REQUIRE']" value="1" >Require</eq>' warning="{$voList.COMMENT}不能为空" size="{$voList.LENGTH}" value="{$vo[$voList['FIELD']]}" onfocus="calendar();" readonly>	
	</eq>		
	<!--是TEXTAREA标签的时候-->
	<eq name="voList['INPUT']" value="textarea">
		<TEXTAREA class="large bLeft"  NAME="{$voList.FIELD}" ROWS="5" COLS="57">{$vo[$voList['FIELD']]}</TEXTAREA>
	</eq>
	<!--是SELECT标签的时候-->
	<eq name="voList['INPUT']" value="select">
		<select id="{$voList.FIELD}" name="{$voList.FIELD}" onchange="<eq name="voList['FIELD']" value="dm_yx">ChangeSelect(this.value,'dm_zy','',YXZYBJ);</eq><eq name="voList['FIELD']" value="dm_zy">ChangeSelect(this.value,'dm_bj','',YXZYBJ);</eq>selectReturnValue('{$voList.FIELD}','{$voList.RELNAME}');">
			<sublist name="voList['codes']" id="sub">
		<option value="{$sub['CODE']}" <eq name="vo[$voList['FIELD']]" value="$sub['CODE']" >selected</eq>>{$sub['CODENAME']}</option>
			</sublist>
		</select>
		<eq name="voList['FIELD']" value="dm_yx"><script>ChangeSelect('0','{$voList['FIELD']}','',YXZYBJ)</script></eq>

	</eq>	
	</TD>
</TR>


</iterate>
<TR>
	<TD ></TD>
	<TD class="center">
	<INPUT TYPE="submit" value="保 存" class="small submit">
	<INPUT TYPE="reset" class="submit  small" value="清 空" >
	</TD>
</TR>
</TABLE>
</FORM>
</div>
</div>
<!-- 主页面结束 -->
{// 加载尾部公共文件 }
<include file="../Public/footer" /> 